<?php

namespace app\api\logic\article;

use app\common\repository\articleType\R as TypeRRepository;

class ArticleType
{
    public function __construct(
        TypeRRepository $typeRRepository
    )
    {
        $this->typeRRepository = $typeRRepository;
    }

    public function getTypes()
    {
        $types = $this->typeRRepository->getTypes([]);
        return ['data' => $types];
    }
}
